package com.gym.tygglxt.service;

import com.gym.tygglxt.pojo.*;

import java.util.List;

public interface EquipmentService {
    public List<EquipmentCustom> queryEqu();

    public EquipmentCustom searchEquById(int equId);

    public List<EquipmentCustom> queryEquByExample(EquipmentCustomExample equipmentCustomExample);

    public List<EquipmentPrice> queryPriceByExample(EquipmentPriceExample equipmentPriceExample);

    public Boolean insertEquipment(Equipment equipment);

    public Boolean insertEquPrice(EquipmentPrice equipmentPrice);

    public Boolean delEquipment(int equId);

    public Boolean delEquPrice(String equType);

    public Boolean updateEqu(Equipment equipment);

    public List<EquipmentRentCustom> queryEquRent(EquipmentRentCustomExample equipmentRentCustomExample);

    public Boolean rentEqu(int equId, String userId);

    public Boolean returnEqu(int rentId, String userId);

    public Boolean delEquRent(int rentId);

    public List<EquipmentServiceCustom> queryEquService(EquipmentServiceCustomExample equipmentServiceCustomExample);

    public Boolean serviceEqu(int equId, String userId);

    public Boolean finishEqu(int serviceId, String userId);

    public List<String> getAllEquType();

    public Boolean updateEquPrice(EquipmentPrice equipmentPrice);
}
